package zj.it.bhne.gridengineeringsurvey.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;

import zj.it.bhne.gridengineeringsurvey.BaseActivity;
import zj.it.bhne.gridengineeringsurvey.R;

/**
 * 应用使用说明
 */
public class ShuomingActivity extends BaseActivity implements View.OnClickListener {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shuoming);
        initView();


    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        finish();
    }

    private void initView() {
        ImageButton activity_ib_back = findViewById(R.id.activity_ib_back);
        TextView activity_tv_title = findViewById(R.id.activity_tv_title);
        TextView activity_tv_save = findViewById(R.id.activity_tv_save);
        activity_tv_title.setText(getString(R.string.title_shuoming));
        activity_tv_save.setText("");
        activity_ib_back.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.activity_ib_back:
                startActivity(new Intent(ShuomingActivity.this, AboutActivity.class));
                break;
        }
    }
}
